# mhwd-PRIME-autoconfig
A script to automatically configure PRIME drivers for laptops with Nvidia dedicated graphics cards on Manjaro.

Based off the Manjaro Wiki tutorial by Jonathon: https://forum.manjaro.org/t/howto-set-up-prime-with-nvidia-proprietary-driver/40225

Available in 3 different versions: GNOME all optimized for the appropriate desktop environment.

# Running the script

To run the script, first download the 7zip file.

Then extract it, and cd into the directory appropriate for your DE.

Run the command "sudo chmod +x ./autoconfig.sh"

Run the scrpt as root (sudo ./autoconfig.sh)

The script will now install the drivers for the Nvidia card, even if you already had them, to be sure.

Then the script may ask for prompts asking to copy over and delete various configuration files.

Press enter at all of these, and do not be worried about errors stating that the files could not be found. This is sometimes expected.

# To perform a final check, run the command 
*"glxinfo | grep -i vendor"*

and make sure you get the output:

*server glx vendor string: NVIDIA Corporation*

*client glx vendor string: NVIDIA Corporation*
 
*OpenGL vendor string: NVIDIA Corporation*
